using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

namespace Deloitte.Windows.Forms
{
	/// <summary>
	/// Summary description for FormPatient.
	/// </summary>
	public class PatientForm : System.Windows.Forms.Form
	{
        System.Windows.Forms.Label label1;
		private System.Windows.Forms.Label patientComment;
		public System.Windows.Forms.ProgressBar ProgressBar;
		private System.Windows.Forms.Timer timer;
		private System.ComponentModel.IContainer components;        		
        private string PatientComment
        {
            get { return this.patientComment.Text; }
            set { this.patientComment.Text = value; }
        }
        public PatientForm()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();			
			SetProgressBar();
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}		
		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
            this.components = new System.ComponentModel.Container();
            this.label1 = new System.Windows.Forms.Label();
            this.patientComment = new System.Windows.Forms.Label();
            this.ProgressBar = new System.Windows.Forms.ProgressBar();
            this.timer = new System.Windows.Forms.Timer(this.components);
            this.SuspendLayout();
            // 
            // label1
            // 
            this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                        | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.label1.Font = new System.Drawing.Font("Tahoma", 18F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.label1.ForeColor = System.Drawing.Color.MidnightBlue;
            this.label1.Location = new System.Drawing.Point(9, 6);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(316, 34);
            this.label1.TabIndex = 0;
            this.label1.Text = "PLEASE BE PATIENT....";
            this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // patientComment
            // 
            this.patientComment.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                        | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.patientComment.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.patientComment.ForeColor = System.Drawing.Color.MidnightBlue;
            this.patientComment.Location = new System.Drawing.Point(8, 56);
            this.patientComment.Name = "patientComment";
            this.patientComment.Size = new System.Drawing.Size(321, 38);
            this.patientComment.TabIndex = 0;
            this.patientComment.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // ProgressBar
            // 
            this.ProgressBar.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.ProgressBar.Location = new System.Drawing.Point(8, 102);
            this.ProgressBar.Maximum = 300;
            this.ProgressBar.Name = "ProgressBar";
            this.ProgressBar.Size = new System.Drawing.Size(324, 23);
            this.ProgressBar.TabIndex = 1;
            // 
            // PatientForm
            // 
            this.AutoScaleBaseSize = new System.Drawing.Size(4, 11);
            this.ClientSize = new System.Drawing.Size(337, 133);
            this.ControlBox = false;
            this.Controls.Add(this.ProgressBar);
            this.Controls.Add(this.label1);
            this.Controls.Add(this.patientComment);
            this.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow;
            this.Name = "PatientForm";
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.ResumeLayout(false);

		}

		#endregion
        public Timer Timer
        {
            get { return this.timer; }
        }      
	
		private void SetProgressBar()
		{				
			this.ProgressBar.Minimum = 0;
			this.ProgressBar.Maximum = 100;
			this.ProgressBar.Value = this.ProgressBar.Minimum;						
		}
	}

}
